package de.lusiardi.webdav.xml;

import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * http://www.webdav.org/specs/rfc4918.html#ELEMENT_multistatus
 *
 * @author Joachim Lusiardi
 */
@XmlRootElement(name = "multistatus")
@XmlAccessorType(XmlAccessType.FIELD)
public class MultiStatus {

    @XmlElement(required = true)
    private List<Response> responses;

    @XmlElement(required = false)
    private ResponseDescription responseDescription;

    public List<Response> getResponses() {
        return responses;
    }

    public void setResponses(List<Response> responses) {
        this.responses = responses;
    }

    public ResponseDescription getResponseDescription() {
        return responseDescription;
    }

    public void setResponseDescription(ResponseDescription responseDescription) {
        this.responseDescription = responseDescription;
    }
}
